import { useEffect } from "react";
import { BrowserRouter } from "react-router-dom";
import { useRoutes } from "react-router-dom";
import router from "@/router";
import "@/App.css";
import { Button } from "antd";

function App() {
  const elements = useRoutes(router);

  useEffect(() => {
    console.log("elements", elements);
  }, []);
  return elements;
}

export default App;
